const pages = import.meta.globEager('./pages/**/index.jsx');
const routers = [];
Object.keys(pages).forEach(key => {
  const routerPath = key.match(/\/pages(\/.+)\//);
  if (routerPath && routerPath[1]) {
    routers.push([routerPath[1], pages[key].default])
  }
});

export default routers;